const express = require( 'express' );
const router = express.Router();
const skill = require( "../../../controllers/skill.controller" );
/**
 * 查询技能信息列表
 * @route POST /api/private/skill/list
 * @group 技能管理 - list of skill
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of skill info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */
router.post( "/list", skill.list );

/**
 * 新增技能信息
 * @route POST /api/private/skill/create
 * @group 技能管理 - list of skill
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of skill info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */
router.post( "/create", skill.create );


/**
 * 修改技能信息
 * @route POST /api/private/skill/update
 * @group 技能管理 - list of skill
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of skill info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */
router.post( "/update", skill.update );

/**
 * 删除技能信息
 * @route POST /api/private/skill/delete
 * @group 技能管理 - list of skill
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of skill info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */
router.post( "/delete", skill.delete );
module.exports = router;